package com.itheima.domain;

import java.util.Date;

public class CarItem {
    private Integer id;         // 自增主键ID
    private Integer userId;     // 用户ID
    private Integer productId;  // 商品ID
    private Integer sellerId;   // 卖家ID
    private Integer status;     // 订单状态(0-待结算,1-已结算,-1-删除)
    private Date createTime;    // 创建时间

    public CarItem() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CartItem{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", sellerId=" + sellerId +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}
